package com.jikangjun.disk.myshare.entity;

import java.util.Date;

/**
 * 分享实体类
 */
public class ShareEntity {
    
    private String shareId;           // 分享ID
    private String fileId;            // 文件ID
    private String fileName;          // 文件名
    private String filePath;          // 文件路径
    private Long fileSize;            // 文件大小
    private String fileType;          // 文件类型
    private String shareLink;         // 分享链接
    private String shareCode;         // 分享码
    private String userId;            // 分享用户ID
    private String userName;          // 分享用户名
    private Date shareTime;           // 分享时间
    private Date expireTime;          // 过期时间
    private Integer downloadCount;    // 下载次数
    private Integer viewCount;        // 查看次数
    private Integer status;           // 状态：1-有效，0-已取消
    private String description;       // 分享描述
    
    // 构造函数
    public ShareEntity() {}
    
    public ShareEntity(String shareId, String fileId, String fileName, String shareLink, String userId, Date shareTime) {
        this.shareId = shareId;
        this.fileId = fileId;
        this.fileName = fileName;
        this.shareLink = shareLink;
        this.userId = userId;
        this.shareTime = shareTime;
        this.status = 1;
        this.downloadCount = 0;
        this.viewCount = 0;
    }
    
    // Getter和Setter方法
    public String getShareId() {
        return shareId;
    }
    
    public void setShareId(String shareId) {
        this.shareId = shareId;
    }
    
    public String getFileId() {
        return fileId;
    }
    
    public void setFileId(String fileId) {
        this.fileId = fileId;
    }
    
    public String getFileName() {
        return fileName;
    }
    
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    
    public String getFilePath() {
        return filePath;
    }
    
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
    
    public Long getFileSize() {
        return fileSize;
    }
    
    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }
    
    public String getFileType() {
        return fileType;
    }
    
    public void setFileType(String fileType) {
        this.fileType = fileType;
    }
    
    public String getShareLink() {
        return shareLink;
    }
    
    public void setShareLink(String shareLink) {
        this.shareLink = shareLink;
    }
    
    public String getShareCode() {
        return shareCode;
    }
    
    public void setShareCode(String shareCode) {
        this.shareCode = shareCode;
    }
    
    public String getUserId() {
        return userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
    public String getUserName() {
        return userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    public Date getShareTime() {
        return shareTime;
    }
    
    public void setShareTime(Date shareTime) {
        this.shareTime = shareTime;
    }
    
    public Date getExpireTime() {
        return expireTime;
    }
    
    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }
    
    public Integer getDownloadCount() {
        return downloadCount;
    }
    
    public void setDownloadCount(Integer downloadCount) {
        this.downloadCount = downloadCount;
    }
    
    public Integer getViewCount() {
        return viewCount;
    }
    
    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
} 